package com.hb.trans.mvp.model

import com.basiclib.base.BaseModel
import com.hb.trans.api.EndPoints
import com.hb.trans.api.TRANS_SERVER_PATH
import com.hb.trans.bean.Base
import com.hb.trans.mvp.contract.EvaluateCoachContract
import io.reactivex.Observable
import javax.inject.Inject

class EvaluateCoachModel @Inject constructor(var api: EndPoints) : BaseModel(), EvaluateCoachContract.Model {
    override fun commitEvaluate(
        stunum: String,
        inscode: String,
        coachName: String,
        coanum: String,
        content: String,
        periodId: String
    ): Observable<Base<Nothing>> {
        return api.commitEvaluate(
            "${TRANS_SERVER_PATH}hbperiod/rateCoa", mutableMapOf(
                "stunum" to stunum,
                "inscode" to inscode,
                "coaname" to coachName,
                "coanum" to coanum,
                "content" to content,
                "classrecordid" to periodId
            )
        )
    }

}
